//
//  PBServeListCell.m
//  PBHomeDemo
//
//  Created by Playboy on 2018/1/9.
//  Copyright © 2018年 tmkj. All rights reserved.
//

#import "PBServeListCell.h"

@interface PBServeListCell ()
@property (strong, nonatomic) IBOutlet UIView *coverView;
@property (strong, nonatomic) IBOutlet UIImageView *coverImageView;
@property (strong, nonatomic) IBOutlet UILabel *nameLabel;
@property (strong, nonatomic) IBOutlet UILabel *desLabel;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;



@end

@implementation PBServeListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.coverView.layer.borderWidth = 1.0f;
    self.coverView.layer.borderColor = [UIColor tm_backgroundColor].CGColor;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)refreshWithModel:(PBServeListModel *)model {
    [self.coverImageView sd_setImageWithURL:[NSURL URLWithString:model.imageUrl] placeholderImage:nil];
    self.nameLabel.text = model.name;
    self.desLabel.text = model.introduce;
    self.priceLabel.text = model.price;
}

@end
